package com.ylr.gateway.framework.properties;


import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Set;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wei
 * date: 2023-04-25 11:28:53
 * className: UriConfig 系统接口配置类
 * version: 1.0
 * description:
 */
@Getter
@Setter
@ToString
@Component
@ConfigurationProperties(prefix = "uri.config")
public class UriConfig {

    /**
     * 白名单配置
     */
    private Config white;
    /**
     * 黑名单配置
     */
    private Config black;

    @Getter
    @Setter
    @ToString
    public static class Config {

        /**
         * 全值匹配
         */
        private Set<String> equals;
        /**
         * 模糊匹配
         */
        private List<String> match;

    }

}
